import request from '@/utils/request'

// 查询家庭成员可以用于股票交易的证券账户列表
export function listRiskFamilyAccount(query) {
  return request({
    url: '/familyAccount/riskFamilyAccount/list',
    method: 'get',
    params: query
  })
}

// 查询家庭成员可以用于股票交易的证券账户详细
export function getRiskFamilyAccount(id) {
  return request({
    url: '/familyAccount/riskFamilyAccount/' + id,
    method: 'get'
  })
}

// 保存家庭成员可以用于股票交易的证券账户
export function saveRiskFamilyAccount(data) {
  return request({
    url: '/familyAccount/riskFamilyAccount/save',
    method: 'post',
    data: data
  })
}

// 删除家庭成员可以用于股票交易的证券账户
export function delRiskFamilyAccount(id) {
  return request({
    url: '/familyAccount/riskFamilyAccount/' + id,
    method: 'delete'
  })
}

// 导出家庭成员可以用于股票交易的证券账户
export function exportRiskFamilyAccount(query) {
  return request({
    url: '/familyAccount/riskFamilyAccount/export',
    method: 'get',
    params: query
  })
}
